package com.digitalchina.lxnsy.sy.peopleAddExp;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;

public class MyProfileExpertActivity extends BaseHtmlActivity {
    private int tag = 0;
    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);
        loadUrl("myProfile_expert");
        setTitle("专家用户资料");
    }

    @Override
    public void rightOnClick(){


    }

    @Override
    public void onResume() {
        super.onResume();
        if (tag > 0){
            callJsMethod("refresh");
        }
        tag ++;
    }

    public class JsApi {


        @JavascriptInterface
        public void myProfile_edit(Object msg) {
            go(MyProfileEditActivity.class);
        }

    }
}
